package com.gs.commentvl.model;

import java.util.Map;

import org.codehaus.jackson.map.ObjectMapper;

public class Post implements DomainObject <Member> {

	private static final long serialVersionUID = 3645860174153781023L;

	private Long postId;
	private Long userId;
	private String story;
	private String contents;

	private String source;
	private String pic;
	private String youtubeKey;
	private String url;
	private String embedUrl;
	private String type;
	private Long postedTime;
	private Long expiredTime;
	private Long lastViewed;

	private int postViewed;
	private int likeClicks;
	private int dislikeClicks;
	private int brickClicks;
	private int eggClicks;
	private int roseClicks;

	private String description;
	private String lastlogin;
	private String status;
	private String profilepicture;
	private String mylang;
	private String ip;
	private int posts;
	private int yourviewed;
	private int youviewed;
	private int points;
	private boolean verified;


	public Long getPostId() {
		return postId;
	}

	public void setPostId(Long postId) {
		this.postId = postId;
	}

	public Long getUserId() {
		return userId;
	}

	public void setUserId(Long userId) {
		this.userId = userId;
	}

	public String getStory() {
		return story;
	}

	public void setStory(String story) {
		this.story = story;
	}

	public String getContents() {
		return contents;
	}

	public void setContents(String contents) {
		this.contents = contents;
	}

	public String getSource() {
		return source;
	}

	public void setSource(String source) {
		this.source = source;
	}

	public String getPic() {
		return pic;
	}

	public void setPic(String pic) {
		this.pic = pic;
	}

	public String getYoutubeKey() {
		return youtubeKey;
	}

	public void setYoutubeKey(String youtubeKey) {
		this.youtubeKey = youtubeKey;
	}

	public String getUrl() {
		return url;
	}

	public void setUrl(String url) {
		this.url = url;
	}

	public String getType() {
		return type;
	}

	public void setType(String type) {
		this.type = type;
	}

	public Long getPostedTime() {
		return postedTime;
	}

	public void setPostedTime(Long postedTime) {
		this.postedTime = postedTime;
	}

	public Long getExpiredTime() {
		return expiredTime;
	}

	public void setExpiredTime(Long expiredTime) {
		this.expiredTime = expiredTime;
	}

	public Long getLastViewed() {
		return lastViewed;
	}

	public void setLastViewed(Long lastViewed) {
		this.lastViewed = lastViewed;
	}

	public int getPostViewed() {
		return postViewed;
	}

	public void setPostViewed(int postViewed) {
		this.postViewed = postViewed;
	}

	public int getLikeClicks() {
		return likeClicks;
	}

	public void setLikeClicks(int likeClicks) {
		this.likeClicks = likeClicks;
	}

	public int getDislikeClicks() {
		return dislikeClicks;
	}

	public void setDislikeClicks(int dislikeClicks) {
		this.dislikeClicks = dislikeClicks;
	}

	public int getBrickClicks() {
		return brickClicks;
	}

	public void setBrickClicks(int brickClicks) {
		this.brickClicks = brickClicks;
	}

	public int getEggClicks() {
		return eggClicks;
	}

	public void setEggClicks(int eggClicks) {
		this.eggClicks = eggClicks;
	}

	public int getRoseClicks() {
		return roseClicks;
	}

	public void setRoseClicks(int roseClicks) {
		this.roseClicks = roseClicks;
	}

	public String getDescription() {
		return description;
	}

	public void setDescription(String description) {
		this.description = description;
	}

	public String getLastlogin() {
		return lastlogin;
	}

	public void setLastlogin(String lastlogin) {
		this.lastlogin = lastlogin;
	}

	public String getStatus() {
		return status;
	}

	public void setStatus(String status) {
		this.status = status;
	}

	public String getProfilepicture() {
		return profilepicture;
	}

	public void setProfilepicture(String profilepicture) {
		this.profilepicture = profilepicture;
	}

	public String getMylang() {
		return mylang;
	}

	public void setMylang(String mylang) {
		this.mylang = mylang;
	}

	public String getIp() {
		return ip;
	}

	public void setIp(String ip) {
		this.ip = ip;
	}

	public int getPosts() {
		return posts;
	}

	public void setPosts(int posts) {
		this.posts = posts;
	}

	public int getYourviewed() {
		return yourviewed;
	}

	public void setYourviewed(int yourviewed) {
		this.yourviewed = yourviewed;
	}

	public int getYouviewed() {
		return youviewed;
	}

	public void setYouviewed(int youviewed) {
		this.youviewed = youviewed;
	}

	public int getPoints() {
		return points;
	}

	public void setPoints(int points) {
		this.points = points;
	}

	public boolean isVerified() {
		return verified;
	}

	public void setVerified(boolean verified) {
		this.verified = verified;
	}

	public String getEmbedUrl() {
		return embedUrl;
	}

	public void setEmbedUrl(String embedUrl) {
		this.embedUrl = embedUrl;
	}

	@Override
	public Map<String, String> toHashMap() {
		ObjectMapper objMapper = new ObjectMapper();
		return objMapper.convertValue(this, Map.class);
	}

}
